﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Seating.utils;
using Sugar.Enties;
namespace Seating
{
    public partial class Student_Form : Form
    {
        public Student_Form()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            LoginUserUtil.CurrentStudent = new Tb_Student() { StudentId = "7198134", Name = "xixi222" }; 
            
            this.Text = "欢迎:" + LoginUserUtil.CurrentStudent.Name;
            
        }

        private void button_lock_Click(object sender, EventArgs e)
        {
          
        }

        private void Main_Form_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit(); 
        }

        private void 注销ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void 修改个人信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            new Student_Manage_From(true).Show();
        }
    }
}
